package engineer.clientapp.beans;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;


	public class User extends ActionForm{
		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;
		private int id;
		private String name;
		private String email;
		private String password;
		private String surname;
		private String address;
		private String foto;
		public String getFoto() {
			return foto;
		}

		public void setFoto(String foto) {
			this.foto = foto;
		}

		private FormFile file;
		
		

		public FormFile getFile() {
			return file;
		}

		public void setFile(FormFile file) {
			this.file = file;
		}

		private long pesel;

		public User(){
			
		}
		
		public User(int id, String username, long freeSpace){
			this.id = id;
			this.email = username;
		}

		public User(int id, String email, String password, String name, String surname, String address, long pesel, String foto) {
			this.id = id;
			this.email = email;
			this.password = password;
			this.pesel=pesel;
			this.name=name;
			this.surname=surname;
			this.address=address;
			this.foto=foto;
		}
		public void setName(String name){
			this.name=name;
		}
		
		public void setAddress(String address){
			this.address=address;
		}
		
		public void setEmail(String email){
			this.email=email;
		}
		
		public void setPassword(String password){
			this.password=password;
		}
		
		public void setSurname(String surname){
			this.surname=surname;
		}
		
		

		public void setId(int id){
			this.id=id;
		}
		
		public String getEmail() {
			return this.email;
		}
		
		public long getPesel() {
			return pesel;
		}

		public void setPesel(long pesel) {
			this.pesel = pesel;
		}

		public String getAddress() {
			return this.address;
		}

		public int getId() {
			return this.id;
		}
		
		public String getPassword(){
			return this.password;
		}
		
		public String getName(){
			return this.name;
		}
		
		public String getSurname(){
			return this.surname;
		}
		
}
